package com.xk.school_device.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xk.school_device.entity.Devices;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface DevicesMapper extends BaseMapper<Devices> {

     void updateByIdStatus(String deviceId, String inUse) ;
    void updateDevices(Devices entity);

    Devices getDeviceById(String deviceId);

    void updateDeviceStatus(Devices deviceById);

    @Update("update devices set status = #{underMaintenance} where device_id = #{deviceId}")
    void updateMaintenanceId(String deviceId, String underMaintenance);

}
